﻿using IHISCETeim.BLL;
using IHISCETeim.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using IHISCETeim.Library;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace IHISCETeim.Web.AgentSys.VipMgr
{
    public partial class VIPAgentExchangeView : AgentPageBase
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.查看 };
            }
        }
        protected override string DWZRef
        {
            get { return "VIPAgentExchangeList"; }

        }


        protected int AgentExID
        {
            get
            {
                return GetRequestValue<int>("AgentExID", 0);
            }
        }
        private VIPAgentExchangeInfo _objEx = null;
        protected VIPAgentExchangeInfo objEx
        {
            get
            {
                if (_objEx == null)
                    _objEx = VIPAgentExchangeController.GetList(AgentExID);

                return _objEx;
            }
        }

        private List<VIPAgentExchangeDetailInfo> _listDetail = null;
        protected List<VIPAgentExchangeDetailInfo> listDetail
        {
            get
            {
                if (_listDetail == null)
                    _listDetail = VIPAgentExchangeController.GetAllDetail(AgentExID);

                return _listDetail;
            }

        }
        protected void Page_Load(object sender, EventArgs e)
        {
            
            bind();
        }
        private void bind()
        {
            this.rpDetail.DataSource = listDetail;
            this.rpDetail.DataBind();
        }
    }
}